package cn.xzz.pethome.dept.service;

import cn.xzz.pethome.dept.domain.Department;
import cn.xzz.pethome.dept.query.DeptQuery;
import cn.xzz.pethome.share.utils.PageCount;

import java.util.List;

public interface IDeptService {

    //分页查询
    PageCount<Department>  getPageCount(DeptQuery  query);

    //查询一个
    Department findById(Long id);

    //新增
    void adddept(Department department);

    //修改
    void updatedept(Department department);

    //删除
    void delete(Long id);

    //批量删除
    void batchdeletedept(List<Long> ids);

    List<Department> getTree();
}
